home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
island_fishing.swf
/
scripts
/
frame_103
/
PlaceObject2_161_18
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-01-13
|
4KB
|
113 lines
onClipEvent(enterFrame){
if(this.canmove <= 0)
{
this._x = _root.hook._x;
this._y = _root.hook._y;
}
if(_root.turtleesc >= 1)
{
this.play();
this.hooked = 0;
_root.guy.gotoAndStop(1);
}
if(this.hitTest(_root.rodend))
{
unloadMovie(this);
_root.guy.head.gotoAndPlay("yar");
_root.fish = _root.fish + 1;
_root.scorepopup.score.text = "15";
_root.scorepopup.play();
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
}
if(this.hitTest(_root.hook))
{
if(_root.f2.hooked <= 0)
{
if(_root.f3.hooked <= 0)
{
if(_root.f4.hooked <= 0)
{
if(_root.f5.hooked <= 0)
{
if(_root.f6.hooked <= 0)
{
if(_root.f7.hooked <= 0)
{
if(_root.f8.hooked <= 0)
{
if(_root.f9.hooked <= 0)
{
if(_root.f10.hooked <= 0)
{
if(this.flashing <= 0)
{
_root.guy.gotoAndStop(2);
if(_root.hook._x < 520)
{
_root.hook._x += 0.5;
}
if(_root.hook._y < 380)
{
_root.hook._y += 0.5;
}
_root.turtletimer.play();
this.canmove = 0;
this.hooked = 1;
this._x = _root.hook._x;
this._y = _root.hook._y;
}
else
{
this.canmove = 1;
this.hooked = 0;
if(this._y < 160)
{
this._y = 180;
}
}
}
}
}
}
}
}
}
}
}
}
}